#include "Peasant.h"
#include "Pesticide.h"
#include <iostream>

using namespace std;

void test()
{
    Peasant zhangsan("zhangsan");
    cout << "zhangsan test:" << endl;
    zhangsan.test();
    zhangsan.peasantAddBdosage(new Pesticide("didiwei"));
    zhangsan.peasantSpray(20);
    zhangsan.fire();
    zhangsan.threadTest();
}

void test2()
{
    Peasant zhangsan2("zhangsan2");
    cout << "lisi test:" << endl;
    zhangsan2.peasantAddBdosage(new Pesticide("didiwei"));
    zhangsan2.fire();
}

int main()
{
    test();
    test2();
    return 0;
}